let activeEffect = null;
const effect = (fn, options = {}) => {
  const effectFn = () => {
    activeEffect = effectFn;
    return fn();
  };
  return effectFn;
};
// 网管 服务器访问
effect(
  () => {
    console.log("我是副作用函数");
  },
  { name: "hahaha" }
);
